package com.jp.knowledge.command.implement;

import android.content.Context;
import android.content.Intent;
import android.support.annotation.NonNull;

import com.jp.knowledge.activity.InfoDataDetailActivity;
import com.jp.knowledge.command.Command;
import com.jp.knowledge.command.CommandReceiver;

/**
 * Created by 528787067@qq.com on 2017/6/17.
 *
 * 知识详情
 */

public class ZhiShiXiangQing extends Command {

	public ZhiShiXiangQing(@NonNull CommandReceiver receivert) {
		super(receivert);
	}

	@Override
	public void execute() {
        Intent intent = createIntent(InfoDataDetailActivity.class);
        intent.putExtra("id", recordId);
		try {
			intent.putExtra("type", Integer.parseInt(parameterId));
		} catch (Exception e){} finally {
			startActivity(intent);
		}
	}
}
